Skip to content

Conversation

powerboat9
Copy link
Collaborator

This vendors libcore under libgrust. In the future we can use this for building libcore as a runtime library, and in the near-future we can use it to test progressively later phases of the compiler on libcore as part of the testsuite.

@powerboat9
Copy link
Collaborator Author

Note that this PR leaves usage of libcore to future PRs

Copy link
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM I like the idea. I assume this is completely unmodified?

@powerboat9
Copy link
Collaborator Author

Yep. LICENSE-* files are copied from the rustc repo root

Copy link
Member

@P-E-P P-E-P left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmh a bit sad that the Cargo.toml in libcore does not document the library's version. I like @philberty 's idea to track the source of the library, not sure the hash is required but the version should be. And it should be somewhere close so we won't forget to update it. Otherwise LGTM.

@powerboat9 powerboat9 marked this pull request as draft August 13, 2025 15:33
@powerboat9
Copy link
Collaborator Author

powerboat9 commented Sep 1, 2025

Mmh a bit sad that the Cargo.toml in libcore does not document the library's version. I like @philberty 's idea to track the source of the library, not sure the hash is required but the version should be. And it should be somewhere close so we won't forget to update it. Otherwise LGTM.

I've created a file libgrust/version-info

@powerboat9 powerboat9 marked this pull request as ready for review September 1, 2025 18:59
contrib/ChangeLog:

	* gcc-changelog/git_commit.py (ignored_prefixes): Add
	'libgrust/rustc-lib/core/'.

Signed-off-by: Owen Avery <[email protected]>
This commit imports libcore 1.49.0 into a new directory,
"libgrust/rustc-lib/core". LICENSE-* files are taken from the rustc
1.49.0 repository root.

libgrust/ChangeLog:

	* rustc-lib/LICENSE-APACHE: New file.
	* rustc-lib/LICENSE-MIT: New file.
	* rustc-lib/version-info: New file.

Signed-off-by: Owen Avery <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants